package Third;

/**
 * @author 长风无言
 */
public class Card {

    private CardKind cardKind;
    private String phoneNum;
    private String user;
    private String password;
    private float balance;
    private int talkTime;
/**
 * description: 构造方法
 *
 * @return void
 */
    public Card() {

    }
/**
 * description: 获取手机卡类型
 *
 * @return Third.CardKind
 */
    public CardKind getCardKind() {
        return cardKind;
    }
/**
 * description: 设置手机卡类型
 *
 * @param cardKind 手机卡类型
 * @return void
 */
    public void setcardKind(CardKind cardKind) {
        this.cardKind = cardKind;
    }
/**
 * description: 获取手机号码
 *
 * @return java.lang.String
 */
    public String getPhoneNum() {
        return phoneNum;
    }
/**
 * description: 设置手机号码
 *
 * @param phoneNum 手机号码
 * @return void
 */
    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }
/**
 * description: 获取用户名
 *
 * @return java.lang.String
 */
    public String getUser() {
        return user;
    }
/**
 * description: 设置用户名
 *
 * @param user 用户名
 * @return void
 */
    public void setUser(String user) {
        this.user = user;
    }
/**
 * description: 获取密码
 *
 * @return java.lang.String
 */
    public String getPassword() {
        return password;
    }
/**
 * description: 设置密码
 *
 * @param password 密码
 * @return void
 */
    public void setPassword(String password) {
        this.password = password;
    }
/**
 * description: 获取余额
 *
 * @return float
 */
    public float getBalance() {
        return balance;
    }
/**
 * description: 设置余额
 *
 * @param balance 余额
 * @return void
 */
    public void setBalance(float balance) {
        this.balance = balance;
    }
/**
 * description:获取通话时长
 *
 * @return int
 */
    public int getTalkTime() {
        return talkTime;
    }
/**
 * description: 设置通话时长
 *
 * @param talkTime 通话时长
 * @return void
 */
    public void setTalkTime(int talkTime) {
        this.talkTime = talkTime;
    }
/**
 * description: 输出基本信息
 *
 * @return void
 */
    public void show(){
        System.out.println("卡名："+phoneNum+"\n用户名:"+user+"\n当前余额："+balance);
    }

}
